import { makeAutoObservable } from "mobx";
// 转时间
import * as dayjs from 'dayjs';
import http from '../utils/http';
class Order {
    constructor() {
        makeAutoObservable(this)
    }
    // 页数
    page = 1;
    setPage(page) {
        this.page = page
    }
    //    条数
    size = 5;
    setSize(size) {
        this.size = size
    }
    // 编号类型
    dingdanleixin = ''
    setDingdanleixin(dingdanleixin) {
        //    console.log(dingdanleixin)
        this.dingdanleixin = dingdanleixin
    }
    // 编号数据
    bianhaoshuju = '';
    setBianhaoshuju(bianhaoshuju) {
        this.bianhaoshuju = bianhaoshuju;
    }
    //商品数据
    shangpin = '';
    setShangpin(shangpin) {
        this.shangpin = shangpin
    }
    // 微信昵称数据
    weixinnicheng = '';
    setWeixinnichneg(weixinnicheng) {
        this.weixinnicheng = weixinnicheng
    }
    // 微信input框数据
    weixininput = '';
    setWeixininput(weixininput) {
        this.weixininput = weixininput;
    }
    // 时间类型数据
    timeliexin = '';
    setTimeliexin(timeliexin) {
        this.timeliexin = timeliexin;
    }
    // 时间input
    // ordertimedata=[]
    // setOrdertimedata(ordertimedata){
    //     this.ordertimedata=ordertimedata
    // }
    // 开始时间
    timeinputkai = '';
    setTimeinputkai(timeinputkai) {
        this.timeinputkai = timeinputkai
    }
    // 结束时间
    timeinputjie = '';
    setTimeinputjie(timeinputjie) {
        this.timeinputjie = timeinputjie;
    }
    // 订单状态
    orderstatus = '';
    setOrderstatus(orderstatus) {
        this.orderstatus = orderstatus
    }
    // 结算状态
    jiestatus = '';
    setJiestatus(jiestatus) {
        this.jiestatus = jiestatus
    }
    // 订单状态信息
    orderzhuangtai = {};
     setOrderzhuangtai(orderzhuangtai) {
        this.orderzhuangtai = {...orderzhuangtai}
    }
    //订单商品信息
    ordershnagpinxinxi = []
    
     setOrdershnagpinxinxi (ordershnagpinxinxi) {
       
        this.ordershnagpinxinxi = ordershnagpinxinxi
    }
    // 进度条的状态
    orderjiundutiao = '';
    setOrderjiundutiao(orderjiundutiao) {
        this.orderjiundutiao = orderjiundutiao
    }
    // 商品信息
    ordergoods = [];
    setOrdergoods(ordergoods) {
       
        this.ordergoods = ordergoods
        // console.log(this.ordergoods,789789789)
    }
}

const orderMobx = new Order();
export default orderMobx;